﻿/// <summary>
/// Excel有Office和Wps目前只支持Office后期加入Wps支持。
/// </summary>
namespace SUNRPA.CONTROLS.IMPL.domain.flowItemParam {
    [Serializable]
    public class NewPivotTableNParam:BaseParam {
        private string excelObject = "{excelObject}";
        private string sourceSheet;
        private string targetSheet;
        private string targetRow;
        private string targetColumn;
        private string rowFields;
        private string columnFields;
        private string piovtName;
        private List<string> valueAndCalTypes = new List<string>();

        public List<string> ValueAndCalTypes {
            get => valueAndCalTypes;
            set {
                valueAndCalTypes = value;
                NotifyPropertyChanged("ValueAndCalTypes");
            }
        }
        public string GetTranslateSourceSheet() {
            if(string.IsNullOrEmpty(sourceSheet)) { 
                return "当前激活sheet";
            } else { 
                return sourceSheet;
            }
        }

        public string GetTranslateTargetSheet() {
            if(string.IsNullOrEmpty(targetSheet)) { 
                return "当前激活sheet";
            } else { 
                return targetSheet;
            }
        }
        public string ExcelObject {
            get => excelObject; 
            set { 
                excelObject = value;
                NotifyPropertyChanged("ExcelObject");
            }  
        }
        public string SourceSheet {
            get => sourceSheet; 
            set { 
                sourceSheet = value;
                NotifyPropertyChanged("SourceSheet");
            }  
        }
        public string TargetSheet {
            get => targetSheet; 
            set { 
                targetSheet = value;
                NotifyPropertyChanged("TargetSheet");
            }  
        }
        public string TargetRow {
            get => targetRow; 
            set { 
                targetRow = value;
                NotifyPropertyChanged("TargetRow");
            }  
        }
        public string TargetColumn {
            get => targetColumn; 
            set { 
                targetColumn = value;
                NotifyPropertyChanged("TargetColumn");
            }  
        }

        public string ColumnFields {
            get => columnFields; 
            set { 
                columnFields = value;
                NotifyPropertyChanged("ColumnFields");
            }  
        }

        public string RowFields {
            get => rowFields; 
            set { 
                rowFields = value;
                NotifyPropertyChanged("RowFields");
            }  
        }

        public string PiovtName {
            get => piovtName; 
            set { 
                piovtName = value;
                NotifyPropertyChanged("PiovtName");
            }  
        }
    }
}
